<?php

namespace app\web\controller;

use app\web\service\ShareService;

// 分享控制器
class ShareController extends CommonController
{
    public function initialize()
    {
//        $this->noCheckTokenAction = ["getHomeData", "getDestinationByLine", "getHotLineList", "getSearchData"];
        parent::initialize();
    }

    // 获取用户分享信息
    public function getshareInfo(){
        if($this->returnData["code"] !== 0){
            return $this->return_result($this->returnData);
        }
        $service = $this->app->invokeClass(ShareService::class, [$this->returnData]);
        $this->returnData = $service->getShareInfo($this->app->request->userLoginData["id"]);
        return $this->return_result($this->returnData);
    }


}
